package com.best.nacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/provider")
public class ProviderController {

	@Value("${server.port}")
	String port;

	@GetMapping("/service")
	public String service() {

		String result = "provider invoke: " + port;
		System.out.println("**********" + result);
		return result;
	}

}
